import request from '@/utils/request'

// 查询采购申请列表
export function listOaPurchaseApply(query) {
  return request({
    url: '/purchaseApply/oaPurchaseApply/list',
    method: 'get',
    params: query
  })
}

// 查询采购申请 下拉 列表
export function listOaPurchaseApplySelect(query) {
  return request({
    url: '/purchaseApply/oaPurchaseApply/select',
    method: 'get',
    params: query
  })
}

// 查询采购申请详细
export function getOaPurchaseApply(id) {
  return request({
    url: '/purchaseApply/oaPurchaseApply/' + id,
    method: 'get'
  })
}

// 保存采购申请
export function saveOaPurchaseApply(data) {
  return request({
    url: '/purchaseApply/oaPurchaseApply/save',
    method: 'post',
    data: data
  })
}

// 删除采购申请
export function delOaPurchaseApply(id) {
  return request({
    url: '/purchaseApply/oaPurchaseApply/' + id,
    method: 'delete'
  })
}

// 导出采购申请
export function exportOaPurchaseApply(query) {
  return request({
    url: '/purchaseApply/oaPurchaseApply/export',
    method: 'get',
    params: query
  })
}
